package com.jason.bookworm.dao.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("db1_comment")
public class Comment {
    @TableId("c_id")
    Integer id;
    @TableField(value = "c_username", insertStrategy = FieldStrategy.NOT_EMPTY)
    String username;
    @TableField(value = "c_bookid", insertStrategy = FieldStrategy.NOT_EMPTY)
    Integer bookId;
    @TableField(value = "c_comment", insertStrategy = FieldStrategy.NOT_EMPTY)
    String comment;
    @TableField("c_status")
    String status;
}
